package com.company.product.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.company.product.resp.SupplierInfoResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("供应商表")
@TableName("tb_supplier")
public class SupplierEntity {
    @ApiModelProperty(value = "供应商编号")
    @TableId
    private String supplierId;
    @ApiModelProperty(value = "供应商品牌")
    private String supplierBrand;
    @ApiModelProperty(value = "供应商姓名")
    private String supplierName;
    @ApiModelProperty(value = "联系方式")
    private String supplierNumber;
    @ApiModelProperty(value = "性别 0 女  1 男")
    private Integer gender;
    @ApiModelProperty(value = "所在地区")
    private String district;
    @ApiModelProperty(value = "跟进记录")
    private String record;
    @ApiModelProperty(value = "操作人")
    private String userId;
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "状态，0：联系中，1：合作中，2已解除")
    private long supplierStatus;
    @ApiModelProperty(value = "删除标记，n未删除，y删除")
    private String isDel;

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierBrand() {
        return supplierBrand;
    }

    public void setSupplierBrand(String supplierBrand) {
        this.supplierBrand = supplierBrand;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierNumber() {
        return supplierNumber;
    }

    public void setSupplierNumber(String supplierNumber) {
        this.supplierNumber = supplierNumber;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public long getSupplierStatus() {
        return supplierStatus;
    }

    public void setSupplierStatus(long supplierStatus) {
        this.supplierStatus = supplierStatus;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public void copyTo(SupplierInfoResp resp){
        resp.setSupplierId(this.supplierId);
        resp.setSupplierBrand(this.supplierBrand);
        resp.setSupplierName(this.supplierName);
        resp.setSupplierNumber(this.supplierNumber);
        resp.setDistrict(this.district);
        resp.setRecord(this.record);
        resp.setRemarks(this.remarks);
        resp.setGender(this.gender);
        resp.setUserId(this.userId);
        resp.setSupplierStatus(this.supplierStatus);
        resp.setCreateTime(this.createTime);
        resp.setUpdateTime(this.updateTime);
    }
}
